package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.DictionaryItem;
import cn.wolfcode.crm.query.DictionaryItemQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;
import java.util.Map;

public interface IDictionaryItemService {

    void delete(Long id);

    void save(DictionaryItem entity);

    void update(DictionaryItem entity);

    DictionaryItem get(Long id);

    List<?> list();

    PageResult query(QueryObject qo);

    List<DictionaryItem> getDictionaryItemByParentId(Long id);

    List<Map<Object,Object>> getDictionaryItemByParentName(DictionaryItemQueryObject dio);
}
